﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DataType
{
    class ValueType
    {
        public static void valueType() { 
            Console.WriteLine("bool 数据大小:{0}", sizeof(bool));
            Console.WriteLine("byte 数据大小:{0}", sizeof(byte));
            Console.WriteLine("char 数据大小:{0}", sizeof(char));
            Console.WriteLine("decimal 数据大小:{0}", sizeof(decimal));
            Console.WriteLine("double 数据大小:{0}", sizeof(double));
            Console.WriteLine("float 数据大小:{0}", sizeof(float));
            Console.WriteLine("int 数据大小:{0}", sizeof(int));
            Console.WriteLine("long 数据大小:{0}", sizeof(long));
            Console.WriteLine("sbyte 数据大小:{0}", sizeof(sbyte));
            Console.WriteLine("short 数据大小:{0}", sizeof(short));
            Console.WriteLine("uint 数据大小:{0}", sizeof(uint));
            Console.WriteLine("ulong 数据大小:{0}", sizeof(ulong));
            Console.WriteLine("ushort 数据大小:{0}", sizeof(ushort));
        }
    }
}
